import { ref } from 'vue';

import { getCategory } from '../server/products';

export const useCategory = () => {
    const categories = ref([]);
    getCategory().then(res => {
        categories.value = res.data;
    });
    return { categories };
};
